home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998…eptember: Technology Seed / September 98 ADC Seed CD.toast / FireWire 1.1 DR2 SDK / Source / OpenTransport / MakeFile < prev   
Encoding:
Makefile  |  1998-01-15  |  8.9 KB  |  284 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for Open Transport networking driver sample
  5. #                code.
  6. #
  7. #    Written by:    Erik Staats
  8. #
  9. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #      <FW37>     8/29/97    KDM        Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
  14. #      <FW36>     6/19/97    GG        Bumped version to 1.0.1a5.
  15. #      <FW35>     5/29/97    GG        Bumped version to 1.01a4.
  16. #      <FW34>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  17. #      <FW33>     4/29/97    GG        Bumped version to 1.0.1a2.
  18. #      <FW32>     4/10/97    GG        Bumped version to 1.0.1d1.
  19. #      <FW31>     3/27/97    GG        Bumped version to 1.0 GM.
  20. #      <FW30>     3/19/97    GG        Bumped version to 1.0b3.
  21. #      <FW29>     3/12/97    GG        Bumped version to 1.0b2.
  22. #      <FW28>     2/19/97    GG        Bumped version to 1.0a3.
  23. #      <FW27>     2/11/97    GG        Bumped copyright to 1997.
  24. #      <FW26>     2/11/97    GG        Bumped version to 1.0a2.
  25. #      <FW25>      2/4/97    GG        
  26. #      <FW24>      2/4/97    GG        Bumped version to 1.0d24.
  27. #      <FW23>     1/28/97    GG        Bumped version to 1.0d23.
  28. #      <FW22>     1/27/97    ES        Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
  29. #      <FW21>     1/21/97    GG        Bumped version to 1.0d22.
  30. #      <FW20>     1/16/97    ES        Changed FWOTDriver file type to 'fwpd'.
  31. #      <FW19>      1/3/97    ES        Removed OTVDevice from build.
  32. #      <FW18>      1/2/97    GG        Bumped Version to 1.0d21.
  33. #      <FW17>    12/20/96    GG        Bumped Version to 1.0d20.
  34. #      <FW16>     12/6/96    GG        Bumped version to 1.0d19.
  35. #      <FW15>    11/14/96    GG        Bumped version to 1.0d18.
  36. #      <FW14>    10/31/96    ES        Bumped version to 1.0d17.
  37. #      <FW13>     10/2/96    ES        Bumped version to 1.0d15.
  38. #      <FW12>     9/12/96    ES        Bumped version to 1.0d14.
  39. #      <FW11>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  40. #                                    ETO #20 and forward.
  41. #      <FW10>     7/11/96    ES        Bumped version to 1.0d13.
  42. #       <FW9>     7/11/96    ES        Bumped version to 1.0d12.
  43. #       <FW8>     6/24/96    ES        Bumped version to 1.0d11.
  44. #       <FW7>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  45. #       <FW6>     5/30/96    ES        Bumped version to 1.0d10.
  46. #       <FW5>     4/19/96    ES        Updated to version 1.0d9.
  47. #       <FW4>     4/15/96    ES        Added some dependencies to FWOTDriver.
  48. #       <FW3>     3/29/96    ES        Bumped version to 1.0d8.
  49. #       <FW2>     3/28/96    ES        Fill in contains and written by fields.
  50. #       <FW1>     3/28/96    ES        first checked in
  51. #
  52. #
  53.  
  54. ################################################################################
  55. #
  56. # Define some directories
  57. #
  58.  
  59. FWOTDriverRootDir            =    :
  60.  
  61. FWSampleDir                    =    {FWOTDriverRootDir}::
  62.  
  63. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  64. OTInterfacesDir                =    {FWOTDriverRootDir}Interfaces:
  65.  
  66. SysLibrariesDir                =    {FWSampleDir}Libraries:
  67. OTLibrariesDir                =    {FWOTDriverRootDir}Libraries:
  68.  
  69. FWOTDriverSourceDir            =    {FWOTDriverRootDir}FWOTDriver:
  70.  
  71. BuildResultsDir                =    {FWSampleDir}BuildResults:
  72. ObjectsDir                    =    {BuildResultsDir}Objects:
  73. ExtensionsDir                =    {BuildResultsDir}Extensions:
  74.  
  75. ################################################################################
  76. #
  77. # Define version info
  78. #
  79.  
  80. FWVersion                    =    1
  81. FWRevision                    =    0
  82. FWBuildStage                =    alpha
  83. FWBuildNumber                =    6
  84. FWShortVersionString        =    '"1.0.1a6"'
  85. FWLongVersionString            =    '"1.0.1a6, © 1995-97 Apple Computer, Inc."'
  86.  
  87.  
  88. ################################################################################
  89. #
  90. # Define stuff for 68K compilation
  91. #
  92.  
  93. C68KOptions                    =    -d ccompile                                    ∂
  94.                                 -b                                            ∂
  95.                                 -r                                            ∂
  96.                                 -i "{SysInterfaces}"                        ∂
  97.                                 -i "{CIncludes}"                            ∂
  98.                                 -mc68020
  99.  
  100. Asm68K                        =    Asm
  101.  
  102. C68K                        =    SC
  103.  
  104. Link68K                        =    Link
  105.  
  106.  
  107. ################################################################################
  108. #
  109. # Define stuff for PowerPC compilation
  110. #
  111.  
  112. MrCOptions                    =    -opt speed                                    ∂
  113.                                 -w 2,7,35                                    ∂
  114.                                 -d TRUE=1                                    ∂
  115.                                 -d FALSE=0                                    ∂
  116.                                 -i "{SysInterfacesDir}"                        ∂
  117.                                 -i "{OTInterfacesDir}"                        ∂
  118.                                 -i "{CIncludes}"
  119.  
  120. CPPCOptions                    =    {MrCOptions}
  121.  
  122. AsmPPC                        =    PPCAsm
  123.  
  124. AsmPPCOptions                =    -dialect PowerPC                            ∂
  125.                                 -o {Targ}
  126.  
  127. CPPC                        =    MrC
  128.  
  129. LinkPPC                        =    PPCLink
  130.  
  131.  
  132. ################################################################################
  133. #
  134. # Define stuff for rez
  135. #
  136.  
  137. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  138.                                 -d FWRevision={FWRevision}                    ∂
  139.                                 -d FWBuildStage={FWBuildStage}                ∂
  140.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  141.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  142.                                 -d FWLongVersionString={FWLongVersionString}
  143.  
  144.  
  145. ################################################################################
  146. #
  147. # Open Transport driver
  148. #
  149.  
  150. "{ObjectsDir}DLPIRoutines.c.o"    ƒ                                            ∂
  151.                             "{FWOTDriverSourceDir}DLPIRoutines.c"            ∂
  152.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  153.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  154.                             "{FWOTDriverSourceDir}HWSpecific.h"
  155.     {CPPC}                                                                    ∂
  156.         "{FWOTDriverSourceDir}DLPIRoutines.c"                                 ∂
  157.         -i "{FWOTDriverSourceDir}"                                            ∂
  158.         {CPPCOptions}                                                        ∂
  159.         -o {Targ}
  160.  
  161. "{ObjectsDir}EntryPoints.c.o"    ƒ                                            ∂
  162.                             "{FWOTDriverSourceDir}EntryPoints.c"            ∂
  163.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  164.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  165.                             "{FWOTDriverSourceDir}HWSpecific.h"
  166.     {CPPC}                                                                    ∂
  167.         "{FWOTDriverSourceDir}EntryPoints.c"                                 ∂
  168.         -i "{FWOTDriverSourceDir}"                                            ∂
  169.         {CPPCOptions}                                                        ∂
  170.         -o {Targ}
  171.  
  172. "{ObjectsDir}HWSpecific.c.o"    ƒ                                            ∂
  173.                             "{FWOTDriverSourceDir}HWSpecific.c"                ∂
  174.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  175.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  176.                             "{FWOTDriverSourceDir}HWSpecific.h"
  177.     {CPPC}                                                                    ∂
  178.         "{FWOTDriverSourceDir}HWSpecific.c"                                 ∂
  179.         -i "{FWOTDriverSourceDir}"                                            ∂
  180.         {CPPCOptions}                                                        ∂
  181.         -o {Targ}
  182.  
  183. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  184.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  185.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  186.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  187.                             "{FWOTDriverSourceDir}FWOTDriver.exp"
  188.     {LinkPPC}                                                                ∂
  189.         -t 'ndrv'                                                            ∂
  190.         -c 'fw  '                                                            ∂
  191.         -xm sharedlibrary                                                    ∂
  192.         -w                                                                     ∂
  193.         -@export "{FWOTDriverSourceDir}FWOTDriver.exp"                        ∂
  194.         -init InitCFMRoutine                                                ∂
  195.         -term TerminateCFMRoutine                                            ∂
  196.         "{ObjectsDir}DLPIRoutines.c.o"                                        ∂
  197.         "{ObjectsDir}EntryPoints.c.o"                                        ∂
  198.         "{ObjectsDir}HWSpecific.c.o"                                        ∂
  199.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  200.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  201.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  202.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  203.         "{SysLibrariesDir}PCILib"                                            ∂
  204.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  205.         "{OTLibrariesDir}OpenTptModuleLib"                                    ∂
  206.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  207.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  208.         -librename StdCLib.xcoff=StdCLib                                    ∂
  209.          -o {Targ}
  210.  
  211. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  212.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  213.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  214.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  215.                             "{FWOTDriverSourceDir}FWOTDriver.exp"            ∂
  216.                             "{FWOTDriverSourceDir}FWOTDriver.r"                ∂
  217.                             "{FWOTDriverRootDir}MakeFile"
  218.     Rez                                                                        ∂
  219.         {RezOptions}                                                        ∂
  220.         "{FWOTDriverSourceDir}FWOTDriver.r"                                    ∂
  221.         -a                                                                    ∂
  222.         -o {Targ}
  223.  
  224. "{ExtensionsDir}FWOTDriverLib"    ƒƒ                                            ∂
  225.                             "{ExtensionsDir}FWOTDriver"
  226.     Duplicate                                                                ∂
  227.         -y                                                                    ∂
  228.         "{ExtensionsDir}FWOTDriver"                                            ∂
  229.         {Targ}
  230.     SetFile                                                                    ∂
  231.         -t 'shlb'                                                            ∂
  232.         {Targ}
  233.  
  234.  
  235. ################################################################################
  236. #
  237. # Open Transport virtual device.
  238. #
  239.  
  240. "{ObjectsDir}OTVDevice.c.o"    ƒ                                                ∂
  241.                             "{FWOTDriverSourceDir}OTVDevice.c"                ∂
  242.                             "{FWOTDriverSourceDir}OTVDevice.h"
  243.     {CPPC}                                                                    ∂
  244.         "{FWOTDriverSourceDir}OTVDevice.c"                                     ∂
  245.         -i "{FWOTDriverSourceDir}"                                            ∂
  246.         {CPPCOptions}                                                        ∂
  247.         -o {Targ}
  248.  
  249. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  250.                             "{ObjectsDir}OTVDevice.c.o"                        ∂
  251.                             "{FWOTDriverSourceDir}OTVDevice.exp"
  252.     {LinkPPC}                                                                ∂
  253.         -t 'vdev'                                                            ∂
  254.         -c 'fw  '                                                            ∂
  255.         -xm sharedlibrary                                                    ∂
  256.         -w                                                                     ∂
  257.         -@export "{FWOTDriverSourceDir}OTVDevice.exp"                        ∂
  258.         -main TheVDeviceDescription                                            ∂
  259.         "{ObjectsDir}OTVDevice.c.o"                                            ∂
  260.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  261.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  262.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  263.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  264.         "{SysLibrariesDir}PCILib"                                            ∂
  265.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  266.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  267.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  268.         -librename StdCLib.xcoff=StdCLib                                    ∂
  269.          -o {Targ}
  270.  
  271. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  272.                             "{FWOTDriverSourceDir}OTVDevice.r"                ∂
  273.                             "{FWOTDriverRootDir}MakeFile"
  274.     Rez                                                                        ∂
  275.         {RezOptions}                                                        ∂
  276.         "{FWOTDriverSourceDir}OTVDevice.r"                                    ∂
  277.         -a                                                                    ∂
  278.         -o {Targ}
  279.  
  280.  
  281. FWOTDriver    ƒ                                                                ∂
  282.                         "{ExtensionsDir}FWOTDriver"                            ∂
  283.                         "{ExtensionsDir}FWOTDriverLib"
  284.